﻿<%@ Page Language="C#" MasterPageFile="~/Design/MasterPage/MasterPage.master" AutoEventWireup="true" CodeFile="HealthArchivesVstSrhForm.aspx.cs" Inherits="App_Search_HealthArchivesVstSrhForm" Title="健康档案查询--家访" %>
<%@ Import Namespace="Shpm.App.Input.Bean" %>
<%@ Register TagPrefix="shpm" TagName="TipBar" Src ="~/App/Search/PersonInfoTipBar.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <script language="javascript" type="text/javascript">
        function openDetail(VisitingId){            
            var url  = "../Input/HealthVisitPlanFinForm.aspx";
	        var prm  = "?VISITING_ID=" + VisitingId;
	        url += prm;
	        var win = window.open(url,'_blank','scrollbars,resizable,width=550,height=460');
	        win.focus();
            return false;
        }        
    </script>
    <div id="container">
        <div id="divBar" runat="server"  visible="false" >
   
                <div id="title">
                    <shpm:TipBar runat="server" ID="tipBar"  />
                </div>
       </div>
           </div>
        <div id="content" runat="server" >
    <table width="100%">
        <tr>
            <td>
                <table class="table_border_line">
                    <tr>
                        <td align="left">

                            <script language="javascript">
                                (new TitleBar('HealthArchivesVstSrh', '会员基本信息')).showBar();
                            </script>

                        </td>
                    </tr>
                </table>
                <table class="table_border_line" style="background-color: #ffffff">
                    <tr>
                        <td style="width: 5px; height: 24px"></td>
                        <td align="left" style="width: 20%; white-space: nowrap; height: 24px">保健医生编号：</td>
                        <td align="left" style="width: 25%; height: 24px">&nbsp;<asp:Label ID="lblDocId"
                            runat="server" Text=""></asp:Label></td>
                        <td align="left" style="width: 20%; height: 24px"></td>
                        <td align="left" style="width: 25%; height: 24px"></td>
                        <td style="height: 24px"></td>
                    </tr>
                    <tr>
                        <td style="width: 5px; height: 24px;"></td>
                        <td align="left" style="width: 20%; white-space: nowrap; height: 24px;">会员编号：</td>
                        <td align="left" style="width: 25%; height: 24px">&nbsp;<asp:Label ID="lblMemId"
                            runat="server" Text=""></asp:Label></td>
                        <td align="left" style="height: 24px"></td>
                        <td align="left" style="height: 24px"></td>
                        <td style="height: 24px;"></td>
                    </tr>
                    <tr>
                        <td style="width: 5px; height: 24px;"></td>
                        <td align="left" style="width: 120px; white-space: nowrap; height: 24px">姓名：</td>
                        <td align="left" style="height: 24px">&nbsp;<asp:Label ID="lblMemName" runat="server"
                            Text=""></asp:Label></td>
                        <td align="left" style="height: 24px">&nbsp;性别：</td>
                        <td align="left" style="height: 24px">
                            <asp:Label ID="lblMemSex" runat="server" Text=""></asp:Label></td>
                        <td style="height: 24px;"></td>
                    </tr>
                    <tr>
                        <td style="width: 5px; height: 24px;"></td>
                        <td align="left" style="width: 120px; white-space: nowrap; height: 24px">房间编号：</td>
                        <td align="left" style="height: 24px">&nbsp;<asp:Label ID="lblRoomNo" runat="server"
                            Text=""></asp:Label></td>
                        <td align="left" style="height: 24px">&nbsp;联系电话：</td>
                        <td align="left" style="height: 24px">
                            <asp:Label ID="lblMemTel" runat="server" Text=""></asp:Label></td>
                        <td style="height: 24px;"></td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <br />
    <table width="100%">
        <tr>
            <td>
                <table class="table_border_line">
                    <tr>
                        <td align="left">

                            <script language="javascript">
                                (new TitleBar('HealthArchivesVstSrh', '检索条件')).showBar();
                            </script>

                        </td>
                    </tr>
                </table>
                <table class="table_border_line" style="background-color: #ffffff">
                    <!--<tr>
                        <td align="left" colspan="6" class="list_title_blue_bg">&nbsp;查询条件</td>
                    </tr>-->
                    <tr>
                        <td style="width: 5px; height: 24px"></td>
                        <td align="left" style="width: 20%; white-space: nowrap; height: 24px">
                            家访类别：</td>
                        <td align="left" style="width: 25%; height: 24px">&nbsp;<asp:DropDownList ID="lstCureType"
                            runat="server" DataTextField="Content" DataValueField="DictNo">
                        </asp:DropDownList></td>
                        <td align="left" style="width: 20%; height: 24px"></td>
                        <td align="left" style="width: 25%; height: 24px">&nbsp;</td>
                        <td align="right" style="height: 24px"></td>
                    </tr>
                    <tr>
                        <td style="width: 12px; height: 26px"></td>
                        <td align="left" style="width: 120px; white-space: nowrap; height: 26px">时间范围：</td>
                        <td align="left" style="height: 26px" colspan="3">&nbsp;<asp:TextBox ID="txtBeginDate"
                            runat="server" Width="92px" MaxLength="10" onfocus="new Calendar().show(this);"></asp:TextBox>
                            ~
                            <asp:TextBox ID="txtEndDate" runat="server" Width="92px" MaxLength="10" onfocus="new Calendar().show(this);"></asp:TextBox>&nbsp;
                            （格式：yyyy/MM/dd）</td>
                        <td align="right" style="height: 26px"></td>
                    </tr>
                    <tr>
                        <td style="height: 20px" colspan="6"></td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td style="text-align: center">
                <asp:Button ID="btnSearch" runat="server" CssClass="button" Text=" 检  索 " OnClick="btnSearch_Click" /></td>
        </tr>
    </table>
    <br />
    <div id="tableResult">
        <table width="100%">
            <tr>
                <td align="left">

                    <script language="javascript">
                        (new TitleBar('SearchBar', '检索结果--家访详细列表')).showBar();
                    </script>

                </td>
            </tr>
            <tr>
                <td>
                    <asp:GridView ID="viewSrhRst" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                        CssClass="GridView_table" DataKeyNames="VisitingId"
                         OnPageIndexChanging="viewSrhRst_PageIndexChanging" OnRowDataBound="viewSrhRst_RowDataBound"
                        BorderStyle="Solid" BorderWidth="3px" EnableViewState="False">
                        <Columns>
                            <asp:BoundField HeaderText="详细编号" DataField="VisitingId" Visible="False">
                                <HeaderStyle Width="0px" CssClass="GridView_head_grayblue" />
                                <ItemStyle CssClass="GridView_item_left" />
                            </asp:BoundField>
                            <asp:BoundField HeaderText="家访类型" DataField="visitingTypeChar">
                                <HeaderStyle Width="10%" CssClass="GridView_head_grayblue" />
                                <ItemStyle CssClass="GridView_item_center" />
                            </asp:BoundField>
                            <asp:BoundField HeaderText="实际家访日期" DataField="FactDate" DataFormatString="{0:yyyy/MM/dd}" HtmlEncode="false">
                                <ItemStyle CssClass="GridView_item_center" />
                                <HeaderStyle Width="20%" CssClass="GridView_head_grayblue" />
                            </asp:BoundField>
                            <asp:BoundField HeaderText="家访级别" DataField="VisitingLevelChar"
                                HtmlEncode="False">
                                <HeaderStyle Width="20%" CssClass="GridView_head_grayblue" />
                                <ItemStyle CssClass="GridView_item_center" />
                            </asp:BoundField>
                            <asp:TemplateField HeaderText="详细" ShowHeader="False">
                                <ItemStyle CssClass="GridView_item_center" />
                                <HeaderStyle CssClass="GridView_head_grayblue" Width="5%" />
                                <ItemTemplate>
                                    <asp:ImageButton ID="ImageButton1" text="<%#((HealthVisitPlanBean)Container.DataItem).VisitingId %>"
                                        runat="server" CausesValidation="false" CommandName="Details" ImageUrl="~/images/new.gif"
                                        ToolTip="详细" />
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <PagerSettings Mode="NumericFirstLast" />
                        <PagerStyle HorizontalAlign="Right" />
                    </asp:GridView>
                </td>
            </tr>
        </table>
    </div>
    <table width="100%">
        <tr>
            <td align="center" style="">
                <asp:Button ID="btnBack" runat="server" Text="  返 回  " CssClass="button" Height="22px" OnClick="btnBack_Click" />
            </td>
        </tr>
    </table>
    </div>

</asp:Content>

